package com.cuc.services;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component
@Scope("prototype")
public class ClassService {

    @Value("一班")
    private String clazzName;
    @Autowired()
    public FielService fielService;
    public void getData(){
        System.out.println(clazzName);
        fielService.getData();
        System.out.println("调用了ClassServic");
    }
}
